
$(    function(){
        // 获取保存到本地的id、type、url
        var uid=localStorage.id;
        var type=localStorage.type;
        var url=localStorage.url;
        //初始化页面

        $.ajax({
            type: "get",
            url: url+"/boss/base/userinfo",
            data: {id:uid,type:type},// 要提交的表单,
            dataType:'json',
            success: function (msg) {
                if(msg.status=='ok!'){
                    $('#usrname').html(msg.msg.name);
                }
                console.log(msg.msg);
            },
            error: function (error) {
                console.log('登录出错！');
            }
        });
        $('#frame').load('admin001.html');
    }
);
function skip(url) {
    $("#frame").load(url);

}